//
//  FWLogger.h
//  VLink
//
//  Created by michael on 2024/9/6.
//
//
//  FWLogger.h
//  VLink
//
//  Created by michael on 2024/10/25.
//


#if __has_include(<CocoaLumberjack/CocoaLumberjack.h>)

@import CocoaLumberjack;
static const DDLogLevel ddLogLevel = DDLogLevelAll;

#else
#import <Foundation/Foundation.h>
#include <os/log.h>
#define DDLogInfo(fmt, ...) os_log_with_type(FWLogger.logger, OS_LOG_TYPE_INFO, "%{public}@", [NSString stringWithFormat:(fmt), ##__VA_ARGS__])
#define DDLogError(fmt, ...) os_log_with_type(FWLogger.logger, OS_LOG_TYPE_ERROR, "%{public}@", [NSString stringWithFormat:(fmt), ##__VA_ARGS__])

@interface FWLogger : NSObject

+ (os_log_t)logger;

@end

#endif

